%% -*- erlang -*-
[
 "config/sys.config",
 {lager,
  [
   {log_root, "/var/data/log"},
   {handlers,
    [
     {lager_file_backend, [{file, "console.log"}, {size, 52428800}, {level, info}]},
     {lager_file_backend, [{file, "error.log"}, {size, 52428800}, {level, error}]}
    ]}
  ]},
 {blockchain,
  [
   {listen_addresses, ["/ip4/0.0.0.0/tcp/2154"]},
   {fetch_latest_from_snap_source, false},
   {validation_width, "${VALIDATION_WIDTH}"},
   {block_sync_batch_size, 10},
   {block_sync_batch_limit, 100},
   {max_inbound_connections, 32},
   {snapshot_memory_limit, 2048},
   {key, undefined},
   {relay_limit, 100},
   {base_dir, "/var/data"}
  ]},
 {libp2p,
  [
   {random_peer_pred, fun miner_util:true_predicate/1},
   {nat_map, #{ {"${NAT_INTERNAL_IP}", "${NAT_INTERNAL_PORT}"} => {"${NAT_EXTERNAL_IP}", "${NAT_EXTERNAL_PORT}"}}}
  ]},
 {relcast,
  [
   {pipeline_depth, 125}
  ]},
 {miner,
  [
   {jsonrpc_ip, {0,0,0,0}}, %% bind jsonrpc to host when in docker container
   {mode, validator},
   {rocksdb_cache_size, 32},
   {rocksdb_write_buffer_size, 32},
   %% these two now disable all the poc stuff
   {use_ebus, false},
   {radio_device, undefined},
   %% dont perform regionalised checks in dev envs
   %% we only realy need the params below if this file is changed to specify a radio device
   %% as without one miner_lora is not started
   %% including the params anyway in case someone needs it in this env
   {region_override, 'US915'}

  ]}
].
